import { createStore } from 'vuex'

// 创建一个新的 store 实例
const store = createStore({
  state () {
    return {
      stuName: '阿迪斯'
    }
  },
  mutations: {
    increment (state,name) {
      state.stuName = name
    }
  },
  actions: {
    increment () {
      this.commit('')
    }
  }
})

export default store